package com.mayikt.service.day01;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MemberService {
    @Value("${tao.name}")
    private String name;
    @Value("${tao.age}")
    private String age;

    @RequestMapping("/getMember")
    public String getMember(){
        return "桃子";
    }

    @RequestMapping("/getProperies")
    public String getProperies(){
        return name +"--"+ age;
    }

}
